package com.example.featuresdk.analytics

import androidx.compose.runtime.staticCompositionLocalOf
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
class AnalyticsProvider {

    @Provides
    @Singleton
    fun delegate(): IAnalyticsDelegate = AnalyticsDelegate.instance
}

val LocalAnalyticsDelegate = staticCompositionLocalOf { AnalyticsDelegate.instance }